package com.xie.o2o.service;

import com.xie.o2o.dto.WechatAuthExecution;
import com.xie.o2o.entity.WechatAuth;

public interface WechatAuthService {
    /**
     * 通过openId查找平台账号
     * @param openId
     * @return
     */
    WechatAuth getWechatAuthByOpenId(String openId);
    /**
     * 注册本平台的微信帐号
     *
     * @param wechatAuth
     * @return
     * @throws RuntimeException
     */
    WechatAuthExecution register(WechatAuth wechatAuth) throws RuntimeException;
}
